<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">

                        {foreach $rooms as $key=>$vo }
                        <a class="btn btn-info btn-selected" href="javascript:;" onclick="baoClick({$vo.id})"><i class="fa fa-leaf"></i>{$vo.name}</a>
                        {/foreach}

                    </div>
                    {foreach $list as $key=>$vo }
                    <h3>{$vo.date}</h3>
                    <table  class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                        <thead>
                        <tr>
                            <th>包厢名</th>
                            <th>预定时间段</th>
                            <th>状态</th>
                            <th>预定人电话</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach $vo.list as $k=>$v }

                        <tr>
                            <td>{$name}</td>
                            <td>{$v.start}~{$v.end}</td>
                            <td style="color: red">{$v.status_txt}</td>
                            <td>{$v.mobile}</td>
                        </tr>
                        {/foreach}

                        </tbody>
                    </table>
                    {/foreach}







                </div>
            </div>
        </div>
    </div>
</div>
<script>
    function baoClick(item){


       var url = "/admin/shop/shoproombook/detail?room_id="+item;

       window.location.href = url;
    }

</script>